﻿using UnityEngine;
using System.Collections;

public class CreateRote : MonoBehaviour {

    // Use this for initialization
    void Start ( ) {
        CreateRoteAction( );
    }

    private void CreateRoteAction () {
        NetHandle.Instance.CreateRoteReq(CreateRoteReturn);
    }

    private void CreateRoteReturn (ActionResult actionResult) {
        if (null == actionResult) {
            return;
        }
        // 跳转到主界面场景
        Application.LoadLevel("MainUI");
    }

}
